package com.example.demos.entity;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.ModelAttribute;

import java.math.BigDecimal;
import java.math.BigInteger;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
    private BigInteger uuid;
    private String name;
    private String origin;
    private String producer;
    private String unit;
    private BigDecimal inPrice;
    private BigDecimal outPrice;
    @JsonProperty("goodsType")
    private String goodsTypeUuid;

    public Goods(String name, String origin, String producer, String unit, BigDecimal inPrice, BigDecimal outPrice, String goodsTypeUuid) {
        this.name = name;
        this.origin = origin;
        this.producer = producer;
        this.unit = unit;
        this.inPrice = inPrice;
        this.outPrice = outPrice;
        this.goodsTypeUuid = goodsTypeUuid;
    }
}
